#include "redis.h"
#include "ConstantDefined.h"

int redisTest() {
	Redis *r = new Redis();
	if (!r->connect(SERVER_HOST, REDIS_PORT)) {
		printf("connect error!\n");
		return 0;
	}
	r->set("name", "redis test");
	printf("Get the name is %s\n", r->get("name").c_str());
	delete r;
}



